#pragma once
#include "base/Control.h"


class ConnectParaLine : public Control
{
public:
    ConnectParaLine() {}

    void ParseXmlElement(class TiXmlElement* ele);
    bool SetAttribute(const char* attrName, const char* attrVal);
    void OnDraw();

    virtual void onMouseButtonDown(int button, int x, int y);
    BlueprintScriptLibrary::Class* GetClass();
    Vec2vbi p1;
    Vec2vbi p2;
    Vec2vbi baseOffset;;
   
    class InputParaPin* pIn;
    class OutputParaPin* pOut;

    VarBaseInt g0PinIndex{ 0 };
    VarBaseInt g1PinIndex{ 0 };
    bool NeedDebugDraw{ false };
    bool bVisible{ false };
};
RegisterBlueprintClass(ConnectParaLine)